package com.wtf.dsp.admin.service.impl;

import com.wtf.dsp.admin.core.provider.AbstractMybatisConfigProvider;
import com.wtf.dsp.admin.service.ExecuteSqlService;
import com.wtf.dsp.core.model.ExecSqlRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: ExecutorMapperSqlServiceImpl
 * Description:
 * date: 2024/3/6 15:52
 *
 * @author linhuanyou
 * @version 1.0
 */
@Slf4j
@Service
public class ExecuteSqlServiceImpl implements ExecuteSqlService {

    @Autowired
    private AbstractMybatisConfigProvider mybatisConfigProvider;

    @Override
    public Object exec(ExecSqlRequest request) throws Exception {
        return mybatisConfigProvider.execute(request);
    }
}
